﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using DataObjectsPhone;
using System.Windows.Media.Imaging;
namespace ee_wp_tourmaker
{
	public partial class CheckPointCell : UserControl
	{
		public CheckPointCell()
		{
			// Required to initialize variables
			InitializeComponent();
		}

        /// <summary>
        /// where the checkpoint is done or not
        /// </summary>
        /// <param name="check"></param>
        public void setCheckPoint(CheckPoint check)
        {
            if (check.Done)
            {
                checkImage.Source = new BitmapImage(new Uri("../Icons/check.png", UriKind.RelativeOrAbsolute));
            }
            
            checkPointNameTextBlock.Text = check.Name;
        }
	}
}